/**
 * Created by Jacky
 *
 * brief :
 */

define('ssq/view/SingleList_A', function(require){
    var Base = require('ssq/view/Base');

    var Helper = require('ssq/Helper');

    return KG.Class.define('ssq.view.SingleList_A', {
        ParentClass : Base,


        getBaseTpl : function(opts){
            return [
                '<div class="singlelist-A">',
                '<dd class="cell date">', opts.id, '</dd>',
                '<dd class="cell red">', opts.h1, '</dd>',
                '<dd class="cell red">', opts.h2, '</dd>',
                '<dd class="cell red">', opts.h3, '</dd>',
                '<dd class="cell red">', opts.h4, '</dd>',
                '<dd class="cell red">', opts.h5, '</dd>',
                '<dd class="cell red">', opts.h6, '</dd>',
                '<dd class="cell blue">', opts.lan, '</dd>',

                '<dd class="cell tj" style="width:50px;">', opts.max, '</dd>',
                '<dd class="cell tj">', opts.kuadu, '</dd>',
                '<dd class="cell tj">', opts.AC, '</dd>',
                '<dd class="cell" style="width: 10px;"></dd>',

                '<dd class="cell tj" style="width: 60px;">', opts.xiaozhongda, '</dd>',

                '</div>'
            ].join('');
        },

        getTemplate : function(){
            var ssq = this.ssq;

            return this.getBaseTpl({
                id : ssq.id,
                h1 : ssq.hong[0],
                h2 : ssq.hong[1],
                h3 : ssq.hong[2],
                h4 : ssq.hong[3],
                h5 : ssq.hong[4],
                h6 : ssq.hong[5],

                lan : ssq.lan,
                max : ssq.max,
                kuadu : ssq.kuadu,
                AC : ssq.getAc(),
                xiaozhongda : ssq.getXiaoZhongDa().join(':')
            });
        },

        initView : function(){
            this.callParent('initView');
        },

        getTitleElement : function(){
            return this.getBaseTpl({
                id : '期号',
                h1 : '红1',
                h2 : '红2',
                h3 : '红3',
                h4 : '红4',
                h5 : '红5',
                h6 : '红6',

                lan : '蓝',
                max : '和值',
                kuadu : '跨度',
                AC : 'AC值',
                xiaozhongda : '区间比'

            });
        }
    });
});